using System.Windows;
using System.Windows.Documents;
using System.Windows.Input;
using Common.BaseClasses;
using Microsoft.Practices.Unity;
using Navigator.Interfaces;
using Navigator.ViewModel.Commands;

namespace Navigator.ViewModel
{
    public class NavigatorViewModel:ViewModelBase, INavigatorViewModel
    {
        public NavigatorViewModel(IUnityContainer container)
        {
            Initialize(container);
        }

        public ICommand ShowProduct{ get; set; }
        public ICommand ShowCategory { get; set; }

        public IUnityContainer Container
        {
            get; set;
        }
        public string ActiveWorkspace
        {
            get; set;
        }

        public event PagesChangedEventHandler PropertyChanged;

        private void Initialize(IUnityContainer container)
        {
            Container = container;
            ShowProduct = new ShowProductCommand(this);
            ShowCategory = new ShowCategoryCommand(this);
            ActiveWorkspace = "ProductView";
        }
    }
}